import request from '@/utils/request'

// 获取检验项目默认值
export function getInnspectiondefaultInfo(id) {
    return request({
        url: `/api/BaseData/Innspectiondefault/${id}`,
        method: 'GET'
    })
}

// 获取检验项目默认值列表
export function getInnspectiondefaultList(data) {
    return request({
        url: `/api/BaseData/Innspectiondefault`,
        method: 'GET',
        data
    })
}

// 添加检验项目默认值
export function createInnspectiondefault(data) {
    return request({
        url: '/api/BaseData/Innspectiondefault',
        method: 'POST',
        data
    })
}

// 更新检验项目默认值
export function updateInnspectiondefault(data) {
    return request({
        url: `/api/BaseData/Innspectiondefault/${data.id}`,
        method: 'PUT',
        data
    })
}

// 批量删除检验项目默认值
export function delInnspectiondefaultBatch(data) {
    return request({
        url: `/api/BaseData/Innspectiondefault/BatchRemove`,
        method: 'POST',
        data
    })
}
// 删除检验项目默认值
export function delInnspectiondefault(id) {
    return request({
        url: `/api/BaseData/Innspectiondefault/${id}`,
        method: 'DELETE'
    })
}
// 获取所有检验项目默认值
export function getInnspectiondefaultAll() {
    return request({
        url: `/api/BaseData/Innspectiondefault/All`,
        method: 'GET'
    })
}
// 导出检验项目默认值
export function exportData(data) {
    return request({
        url: `/api/BaseData/Innspectiondefault/Actions/Export`,
        method: 'GET',
        data
    })
}
// 导入
export function ImportData(data) {
  return request({
    url: '/api/BaseData/Innspectiondefault/ImportData',
    method: 'post',
    data
  })
}
// 导入预览
export function ImportPreview(data) {
  return request({
    url: '/api/BaseData/Innspectiondefault/ImportPreview',
    method: 'get',
    data
  })
}
// 模板下载
export function TemplateDownload() {
  return request({
    url: '/api/BaseData/Innspectiondefault/TemplateDownload',
    method: 'get'
  })
}